import request from "@/utils/request";

//新增温馨提示
export function addTips(data) {
  return request({
    url: "/system/tips",
    method: "post",
    data: data,
  });
}

// 获取温馨提示详细信息
export function getTips(tipsId) {
  return request({
    url: "/system/tips/"+tipsId,
    method: "get",
  });
}
// 修改温馨提示
export function updateTips(data) {
  return request({
    url: "/system/tips",
    method: "put",
    data: data,
  });
}
// 删除温馨提示
export function deleteTips(tipsId) {
  return request({
    url: "/system/tips/"+tipsId,
    method: "delete",
  });
}
// 查询温馨提示列表
export function getTipsList(query) {
  return request({
    url: "/system/tips/list",
    method: "get",
    params: query
  });
}
//system​/tips​/get​/user​/tips​/title 查询温馨提示列表根据标题查询
export function getTipsTitle(query) {
  return request({
    url: "/system​/tips​/get​/user​/tips​/title",
    method: "get",
    params: query
  });
}
//system/tips/whether/send/user/tips 是否发送过比类温警提示给用户 true 发送过false 未发送过
export function sendUserTips(query) {
  return request({
    url: "/system/tips/whether/send/user/tips",
    method: "get",
    params: query
  });
}
